-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (45 loc) · 1.38 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
from setuptools import setup
from os import path
import re
def packagefile(*relpath):
return path.join(path.dirname(__file__), *relpath)
def read(*relpath):
with open(packagefile(*relpath)) as f:
return f.read()
def get_version(*relpath):
match = re.search(
r'''^__version__ = ['"]([^'"]*)['"]''',
read(*relpath),
re.M
)
if not match:
raise RuntimeError('Unable to find version string.')
return match.group(1)
setup(
name='docker-registry-admin',
version=get_version('docker_registry_client.py'),
description='A convenience script to list and delete registries from docker registry.',
long_description=read('README.rst'),
url='https://github.com/frederico-apolonia/Docker-Registry-Client',
author='Frederico Apolonia',
author_email='fredericojcapolo@gmail.com',
license='MIT',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.7',
],
keywords='docker registry',
install_requires=[
'docopt',
'requests',
],
package_dir={'': '.'},
py_modules=['docker_registry_client'],
entry_points={
'console_scripts': [
'docker-registry=docker_registry_client:main',
],
},
)