-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
60 lines (47 loc) · 2.09 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
from setuptools import version, setup, find_packages
import artifacts
_version="{major}.{minor}.{patch}".format(
major=artifacts.__version__.major,
minor=artifacts.__version__.minor,
patch=artifacts.__version__.patch
)
_classifiers = [
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Environment :: Console',
'Environment :: MacOS X',
'Operating System :: POSIX :: Linux',
]
if artifacts.__version__.prerelease is not None:
_classifiers.append('Development Status :: 4 - Beta')
else:
_classifiers.append('Development Status :: 5 - Production/Stable')
setup(
name="artifacts",
version=_version,
packages=find_packages(include=['artifacts'],exclude=['tests','venv']),
entry_points={
'console_scripts': [
'artifact-deploy = artifacts.deploy_artifacts_app:main',
'artifact-copy = artifacts.copy_artifacts_app:main'
]
},
install_requires=['PyYAML==5.1.2', 'semantic-version==2.8.2'],
author="Herbert Koelman",
author_email="[email protected]",
description="""
basic artifact handler.
if you are sane, setup something like conan (https://conan.io).
the system relies on archive files and directories. Artifacts are anything found in a tape archive ist's name follows
this rule '<name>[-<os>]-<semver>[-snapshot]-<target arch>.tar.gz'. Degist files are expected to use this naming
rule '<name>[-<os>]-<semver>[-snapshot]-<target arch>.tar.gz.md5'.
The modules comes with two programs, one that coipies your artifacts into a directory. And another that searches your
artifact directories and extracts whatever wad archived.
what this module does and you, who are using mv, cp and tar commands, is: we do check file integrity (MD5) before copying
or archive extraction. Plus we run on both windows and Unix :-)
""",
keywords="handling artifacts",
url="https://github.com/HerbertKoelman/python_sample",
license='GPLv3+',
classifiers=_classifiers
)