Changeset - 7c015a3647d3
[Not reviewed]
0 1 3
Branko Majic (branko) - 6 years ago 2018-02-26 10:27:23
branko@majic.rs
GC-2: Added initial package setup configuration:

- Updated gitignore to exlude some of the build and Python artefacts.
- Added manifest file, including a number of files that are not
normally being distributed.
- Created setup.cfg that overrides default command for running tests.
- Added initial setup.py.
4 files changed with 104 insertions and 1 deletions:
0 comments (0 inline, 0 general)
.gitignore
Show inline comments
 
@@ -3,4 +3,11 @@
 
.#*
 

	
 
# Ignore build artefacts.
 
docs/_build/
 
\ No newline at end of file
 
docs/_build/
 
dist/
 

	
 
# Ignore Python artefacts.
 
.eggs/
 
.pytest_cache/
 
__pycache__/
 
*.egg-info/
 
\ No newline at end of file
MANIFEST.in
Show inline comments
 
new file 100644
 
include LICENSE-*
 
recursive-include docs *.rst
 
\ No newline at end of file
setup.cfg
Show inline comments
 
new file 100644
 
[aliases]
 
test=pytest
 
\ No newline at end of file
setup.py
Show inline comments
 
new file 100755
 
#!/usr/bin/env python
 
# -*- coding: utf-8 -*-
 
#
 
# Copyright (C) 2018 Branko Majic
 
#
 
# This file is part of Gimmecert.
 
#
 
# Gimmecert is free software: you can redistribute it and/or modify it
 
# under the terms of the GNU General Public License as published by the Free
 
# Software Foundation, either version 3 of the License, or (at your option) any
 
# later version.
 
#
 
# Gimmecert 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 General Public License for more
 
# details.
 
#
 
# You should have received a copy of the GNU General Public License along with
 
# Gimmecert.  If not, see <http://www.gnu.org/licenses/>.
 
#
 

	
 
import os
 
from setuptools import setup, find_packages
 

	
 
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
 

	
 
install_requirements = [
 
]
 

	
 
doc_requirements = [
 
    'sphinx>=1.7,<1.8',
 
]
 

	
 
test_requirements = [
 
    'pytest>=3.4,<3.5',
 
    'pytest-cov>=2.5,<2.6',
 
    'tox>=2.9,<2.10',
 
]
 

	
 
test_lint_requirements = [
 
    'flake8>=3.5,<3.6',
 
]
 

	
 
setup_requirements = [
 
    'pytest-runner>=4.0,<4.1',
 
]
 

	
 
development_requirements = doc_requirements + test_requirements + test_lint_requirements
 

	
 
extras_requirements = {
 
    'devel': development_requirements,
 
    'doc': doc_requirements,
 
    'test': test_requirements,
 
    'testlint': test_lint_requirements,
 
}
 

	
 
# allow setup.py to be run from any path
 
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
 

	
 
setup(
 
    name='gimmecert',
 
    version='0.0-dev',
 
    packages=find_packages(),
 
    include_package_data=True,
 
    license='GPLv3+',
 
    description='A simple tool for quickly issuing server and client certificates.',
 
    long_description=README,
 
    url='http://projects.majic.rs/gimmecert',
 
    author='Branko Majic',
 
    author_email='branko@majic.rs',
 
    install_requires=install_requirements,
 
    setup_requires=setup_requirements,
 
    tests_require=test_requirements,
 
    extras_require=extras_requirements,
 
    classifiers=[
 
        'Development Status :: 1 - Planning',
 
        'Environment :: Console',
 
        'Intended Audience :: Developers',
 
        'Intended Audience :: System Administrators',
 
        'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
 
        'Operating System :: OS Independent',
 
        'Programming Language :: Python :: 3.4',
 
        'Programming Language :: Python :: 3.5',
 
        'Programming Language :: Python :: 3.6',
 
        'Programming Language :: Python :: 3.7',
 
        'Topic :: Internet :: WWW/HTTP',
 
        'Topic :: Internet :: WWW/HTTP :: Site Management',
 
        'Topic :: Security',
 
        'Topic :: Software Development :: Testing',
 
        'Topic :: Utilities',
 
    ],
 
)
0 comments (0 inline, 0 general)