Browse Source

Create base skeleton for python package

Signed-off-by: Jim Martens <github@2martens.de>
master
Jim Martens 2 years ago
parent
commit
16e12b21dc
6 changed files with 133 additions and 0 deletions
  1. +1
    -0
      MANIFEST.in
  2. +52
    -0
      setup.py
  3. +20
    -0
      src/twomartens/__init__.py
  4. +15
    -0
      src/twomartens/calendarsync/__init__.py
  5. +20
    -0
      src/twomartens/calendarsync/__main__.py
  6. +25
    -0
      src/twomartens/calendarsync/calendarsync.py

+ 1
- 0
MANIFEST.in View File

@@ -0,0 +1 @@
include LICENSE.txt

+ 52
- 0
setup.py View File

@@ -0,0 +1,52 @@
# -*- coding: utf-8 -*-

# Copyright 2018 Jim Martens
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""setup.py: build script for setuptools"""
from setuptools import setup, find_packages

with open("README.md", "rb") as f:
long_desc = f.read().decode()

setup(
name="twomartens.calendarsync",
description="Tool that synchronizes Jekyll event collection with remote calendar",
long_description=long_desc,
long_description_content_type="text/markdown; charset=UTF-8",
author="Jim Martens",
author_email="github@2martens.de",
url="https://git.2martens.de/2martens/calendar-synchronization",
version="1.0.0.dev1",
namespace_packages=["twomartens"],
packages=find_packages('src', exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
package_dir={'': 'src'},
entry_points={
"console_scripts": ['tm-calendarsync = twomartens.calendarsync.calendarsync:main']
},
python_requires="~=3.6",
install_requires=[""],
license="Apache License 2.0",
classifiers=[
"Operating System :: OS Independent",
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: Apache Software License",
"Environment :: Console",
"Topic :: Utilities",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
)

+ 20
- 0
src/twomartens/__init__.py View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-

# Copyright 2018 Jim Martens
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""twomartens: Namespace package"""

# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
__import__('pkg_resources').declare_namespace(__name__)

+ 15
- 0
src/twomartens/calendarsync/__init__.py View File

@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-

# Copyright 2018 Jim Martens
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

+ 20
- 0
src/twomartens/calendarsync/__main__.py View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-

# Copyright 2018 Jim Martens
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""calendarsync.__main__: executed when calendarsync directory is called as a script."""
from .calendarsync import main

main()

+ 25
- 0
src/twomartens/calendarsync/calendarsync.py View File

@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-

# Copyright 2018 Jim Martens
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""calendarsync.calendarsync: provides entry point main()"""


def main() -> None:
"""
Main entry point.
"""
pass


Loading…
Cancel
Save