gvacommon/setup.py
Jan Dittberner 8dda40a363 Make gvacommon distributable
This commit performs a lot of changes to make gvacommon properly
distributable:

- add a setup.py
- move code into a module directory
- add a __version__
- add a README.rst and AGPLv3 license file (COPYING)
- specify the licensing in file headers
- move tests into a submodule of gvacommon and split tests for different
  modules into separate test modules
- get rid of django-braces dependency
- adapt setup.cfg to the new directory structure
- ignore build and dist directories
2016-01-29 13:40:12 +01:00

56 lines
1.7 KiB
Python

#
# gvacommon - common parts of gnuviechadmin
# Copyright (C) 2016 Jan Dittberner
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from setuptools import setup, find_packages
from gvacommon import __version__ as version
with open('README.rst') as readme_file:
readme = readme_file.read()
readme += """
license
-------
"""
with open('COPYING') as license_file:
readme += license_file.read()
setup(
name='gvacommon',
version=version,
description='common utility code for gnuviechadmin applications',
long_description=readme,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Programming Language :: Python',
'Intended Audience :: Developers',
],
keywords='gnuviechadmin',
url='https://dev.gnuviech-server.de/gvacommon/',
author='Jan Dittberner',
author_email='jan@dittberner.info',
license='AGPLv3+',
packages=find_packages(),
test_suite='gvacommon.tests',
install_requires=[
'Django',
],
include_package_data=True,
zip_safe=False
)