diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..42eb410 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include LICENSE.txt diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..74afcda --- /dev/null +++ b/setup.py @@ -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", + ], +) diff --git a/src/twomartens/__init__.py b/src/twomartens/__init__.py new file mode 100644 index 0000000..1c83f5a --- /dev/null +++ b/src/twomartens/__init__.py @@ -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__) diff --git a/src/twomartens/calendarsync/__init__.py b/src/twomartens/calendarsync/__init__.py new file mode 100644 index 0000000..c728d74 --- /dev/null +++ b/src/twomartens/calendarsync/__init__.py @@ -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. diff --git a/src/twomartens/calendarsync/__main__.py b/src/twomartens/calendarsync/__main__.py new file mode 100644 index 0000000..55f2fd4 --- /dev/null +++ b/src/twomartens/calendarsync/__main__.py @@ -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() diff --git a/src/twomartens/calendarsync/calendarsync.py b/src/twomartens/calendarsync/calendarsync.py new file mode 100644 index 0000000..e95bd91 --- /dev/null +++ b/src/twomartens/calendarsync/calendarsync.py @@ -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 +