예제 #1
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pkgversion import list_requirements, pep440_version, write_setup_py
from setuptools import find_packages

write_setup_py(
    name='django-etcd-settings',
    version=pep440_version(),
    description="A dynamic settings management solution for Django using ETCD",
    long_description=open('README.rst').read(),
    author="Enrique Paz",
    author_email='*****@*****.**',
    url='https://github.com/kpn-digital/django-etcd-settings',
    install_requires=list_requirements('requirements/requirements-base.txt'),
    packages=find_packages(exclude=['tests*']),
    tests_require=['tox'],
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Topic :: Internet :: WWW/HTTP',
    ])
예제 #2
0
 def test_pep440_version(self):
     assert pep440_version('1.2') == '1.2'
     assert pep440_version('1.2.3') == '1.2.3'
     assert pep440_version('1.2.3-99-ge3b6e92') == '1.2.3+99.ge3b6e92'
     assert pep440_version('ge3b6e92') == 'ge3b6e92'
     assert pep440_version(None) is None
예제 #3
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pkgversion import list_requirements, pep440_version, write_setup_py
from setuptools import find_packages

write_setup_py(
    name='timeexecution',
    version=pep440_version(),
    description="Python project",
    long_description=open('README.rst').read(),
    author="Niels Lensink",
    author_email='*****@*****.**',
    url='https://github.com/kpn-digital/py-timeexecution',
    install_requires=list_requirements('requirements/requirements-base.txt'),
    packages=find_packages(exclude=['tests*']),
    tests_require=['tox'],
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Software Development :: Libraries :: Python Modules',
예제 #4
0
 def test_pep440_version(self):
     assert pep440_version('1.2') == '1.2'
     assert pep440_version('1.2.3') == '1.2.3'
     assert pep440_version('1.2.3-99-ge3b6e92') == '1.2.3+99.ge3b6e92'
     assert pep440_version('ge3b6e92') == '0.0+ge3b6e92'
     assert pep440_version(None) is None
     assert pep440_version('1.2.3a4-99-ge3b6e92') == '1.2.3a4+99.ge3b6e92'
     assert pep440_version('1.2.3-a4-99-ge3b6e92') == '1.2.3a4+99.ge3b6e92'
     assert pep440_version('1.2.3_a4-99-ge3b6e92') == '1.2.3a4+99.ge3b6e92'
     assert pep440_version('1.2.3.a4-99-ge3b6e92') == '1.2.3a4+99.ge3b6e92'
     assert pep440_version('1.2.3-a4') == '1.2.3a4'
     assert pep440_version('1.2.3a4') == '1.2.3a4'
     assert pep440_version('1.2.3-alpha4') == '1.2.3a4'
     assert pep440_version('1.2.3-beta4') == '1.2.3b4'
     assert pep440_version('1.2.3-rc4') == '1.2.3rc4'
     assert pep440_version('1.2.3-c4') == '1.2.3rc4'
     assert pep440_version('1.2.3-preview4') == '1.2.3rc4'
     assert pep440_version('1.2.3-pre4') == '1.2.3rc4'
     assert pep440_version('1.2.3b4') == '1.2.3b4'
     assert pep440_version('1.2.3.rc4') == '1.2.3rc4'
     assert pep440_version('1.2.3.dev4') == '1.2.3.dev4'
     assert pep440_version('1.2.3ndev4') is None
     assert pep440_version('1.2.3.post1') == '1.2.3.post1'
     assert pep440_version('1.2.3npost1') is None
     assert pep440_version('1.2.3-a4.post1.dev5') == '1.2.3a4.post1.dev5'
     assert pep440_version('1.2.3-a4.post1.dev5') == '1.2.3a4.post1.dev5'
     assert pep440_version('non1.2.3.post1') is None
예제 #5
0
 def test_pep440_version(self):
     assert pep440_version('1.2') == '1.2'
     assert pep440_version('1.2.3') == '1.2.3'
     assert pep440_version('1.2.3-99-ge3b6e92') == '1.2.3+99.ge3b6e92'
     assert pep440_version('ge3b6e92') == '0.0+ge3b6e92'
     assert pep440_version(None) is None
     assert pep440_version('1.2.3a4-99-ge3b6e92') == '1.2.3a4+99.ge3b6e92'
     assert pep440_version('1.2.3-a4-99-ge3b6e92') == '1.2.3a4+99.ge3b6e92'
     assert pep440_version('1.2.3_a4-99-ge3b6e92') == '1.2.3a4+99.ge3b6e92'
     assert pep440_version('1.2.3.a4-99-ge3b6e92') == '1.2.3a4+99.ge3b6e92'
     assert pep440_version('1.2.3-a4') == '1.2.3a4'
     assert pep440_version('1.2.3a4') == '1.2.3a4'
     assert pep440_version('1.2.3-alpha4') == '1.2.3a4'
     assert pep440_version('1.2.3-beta4') == '1.2.3b4'
     assert pep440_version('1.2.3-rc4') == '1.2.3rc4'
     assert pep440_version('1.2.3-c4') == '1.2.3rc4'
     assert pep440_version('1.2.3-preview4') == '1.2.3rc4'
     assert pep440_version('1.2.3-pre4') == '1.2.3rc4'
     assert pep440_version('1.2.3b4') == '1.2.3b4'
     assert pep440_version('1.2.3.rc4') == '1.2.3rc4'
     assert pep440_version('1.2.3.dev4') == '1.2.3.dev4'
     assert pep440_version('1.2.3ndev4') is None
     assert pep440_version('1.2.3.post1') == '1.2.3.post1'
     assert pep440_version('1.2.3npost1') is None
     assert pep440_version('1.2.3-a4.post1.dev5') == '1.2.3a4.post1.dev5'
     assert pep440_version('1.2.3-a4.post1.dev5') == '1.2.3a4.post1.dev5'
     assert pep440_version('non1.2.3.post1') is None
예제 #6
0
#!/usr/bin/env python
import os

from pkgversion import list_requirements, pep440_version, write_setup_py
from setuptools import find_packages

write_setup_py(
    name='katka-core',
    version=os.getenv('tag') or pep440_version(),
    description='Katka Django core application',
    long_description=open('README.md', encoding='utf-8').read(),
    long_description_content_type='text/markdown',
    author='D-Nitro',
    author_email='*****@*****.**',
    url='https://github.com/kpn/katka-core',
    install_requires=list_requirements('requirements/requirements-base.txt'),
    packages=find_packages(),
    tests_require=['tox'],
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Framework :: Django :: 2.1',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3.7',
        'Topic :: Internet :: WWW/HTTP',
    ]
)
예제 #7
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pkgversion import list_requirements, pep440_version, write_setup_py
from setuptools import find_packages

write_setup_py(
    name='service-rabbit',
    version=pep440_version('1.0.0'),
    description="Rabbit service client",
    long_description=open('README.md').read(),
    author='puntonim',
    author_email='*****@*****.**',
    url='https://github.com/puntonim/service-rabbit',
    install_requires=list_requirements('requirements/requirements-base.txt'),
    packages=find_packages(exclude=['tests']),
    tests_require=['tox'],
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        'Topic :: Internet :: WWW/HTTP',
    ])
예제 #8
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pkgversion import list_requirements, pep440_version, write_setup_py
from setuptools import find_packages

write_setup_py(
    name='service-flower',
    version=pep440_version('1.0.1'),
    description="Flower service client",
    long_description=open('README.md').read(),
    author='puntonim',
    author_email='*****@*****.**',
    url='https://github.com/puntonim/service-flower',
    install_requires=list_requirements('requirements/requirements-base.txt'),
    packages=find_packages(exclude=['tests']),
    tests_require=['tox'],
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        'Topic :: Internet :: WWW/HTTP',
    ])