mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Merge pull request #139 from 4383/setuptools-update
Improve setuptools capabilities
This commit is contained in:
@@ -38,6 +38,10 @@ Here are a few things you can do that will increase the likelihood of your pull
|
||||
|
||||
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
|
||||
|
||||
## Development prerequisites
|
||||
|
||||
- setuptools >= 30.3.0
|
||||
|
||||
## License note
|
||||
|
||||
We can only accept contributions that are compatible with the MIT license.
|
||||
|
@@ -3,6 +3,5 @@ include CONTRIBUTING.md
|
||||
include LICENSE
|
||||
include docs/*
|
||||
include octodns/*
|
||||
include requirements*.txt
|
||||
include script/*
|
||||
include tests/*
|
||||
|
@@ -1,7 +0,0 @@
|
||||
coverage
|
||||
mock
|
||||
nose
|
||||
pep8
|
||||
pyflakes
|
||||
requests_mock
|
||||
setuptools>=36.4.0
|
@@ -1,23 +0,0 @@
|
||||
# These are known good versions. You're free to use others and things will
|
||||
# likely work, but no promises are made, especilly if you go older.
|
||||
PyYaml==3.12
|
||||
azure-mgmt-dns==1.0.1
|
||||
azure-common==1.1.6
|
||||
boto3==1.4.6
|
||||
botocore==1.6.8
|
||||
dnspython==1.15.0
|
||||
docutils==0.14
|
||||
dyn==1.8.0
|
||||
futures==3.1.1
|
||||
google-cloud==0.27.0
|
||||
incf.countryutils==1.0
|
||||
ipaddress==1.0.18
|
||||
jmespath==0.9.3
|
||||
msrestazure==0.4.10
|
||||
natsort==5.0.3
|
||||
nsone==0.9.14
|
||||
ovh==0.4.7
|
||||
python-dateutil==2.6.1
|
||||
requests==2.13.0
|
||||
s3transfer==0.1.10
|
||||
six==1.10.0
|
@@ -19,10 +19,10 @@ if [ ! -d "$VENV_NAME" ]; then
|
||||
fi
|
||||
. "$VENV_NAME/bin/activate"
|
||||
|
||||
pip install -U -r requirements.txt
|
||||
pip install -e .
|
||||
|
||||
if [ "$ENV" != "production" ]; then
|
||||
pip install -U -r requirements-dev.txt
|
||||
pip install -e .[dev,test]
|
||||
fi
|
||||
|
||||
if [ ! -L ".git/hooks/pre-commit" ]; then
|
||||
|
68
setup.cfg
Normal file
68
setup.cfg
Normal file
@@ -0,0 +1,68 @@
|
||||
[metadata]
|
||||
name = octodns
|
||||
description = "DNS as code - Tools for managing DNS across multiple providers"
|
||||
long_description = file: README.md
|
||||
version = attr: octodns.__VERSION__
|
||||
author = Ross McFarland
|
||||
author_email = rwmcfa1@gmail.com
|
||||
url = https://github.com/github/octodns
|
||||
license = MIT
|
||||
keywords = dns, providers
|
||||
classifiers =
|
||||
License :: OSI Approved :: MIT License
|
||||
Programming Language :: Python
|
||||
Programming Language :: Python :: 2.7
|
||||
Programming Language :: Python :: 3
|
||||
Programming Language :: Python :: 3.3
|
||||
Programming Language :: Python :: 3.4
|
||||
Programming Language :: Python :: 3.5
|
||||
Programming Language :: Python :: 3.6
|
||||
|
||||
[options]
|
||||
install_requires =
|
||||
PyYaml>=3.12
|
||||
dnspython>=1.15.0
|
||||
futures==3.1.1
|
||||
incf.countryutils==1.0
|
||||
ipaddress==1.0.18
|
||||
natsort==5.0.3
|
||||
python-dateutil==2.6.1
|
||||
requests==2.13.0
|
||||
packages = find:
|
||||
include_package_data = True
|
||||
|
||||
[options.entry_points]
|
||||
console_scripts =
|
||||
octodns-compare = octodns.cmds.compare:main
|
||||
octodns-dump = octodns.cmds.dump:main
|
||||
octodns-report = octodns.cmds.report:main
|
||||
octodns-sync = octodns.cmds.sync:main
|
||||
octodns-validate = octodns.cmds.validate:main
|
||||
|
||||
[options.packages.find]
|
||||
exclude =
|
||||
tests
|
||||
|
||||
[options.extras_require]
|
||||
dev =
|
||||
azure-mgmt-dns==1.0.1
|
||||
azure-common==1.1.6
|
||||
boto3==1.4.6
|
||||
botocore==1.6.8
|
||||
docutils==0.14
|
||||
dyn==1.8.0
|
||||
google-cloud==0.27.0
|
||||
jmespath==0.9.3
|
||||
msrestazure==0.4.10
|
||||
nsone==0.9.14
|
||||
ovh==0.4.7
|
||||
s3transfer==0.1.10
|
||||
six==1.10.0
|
||||
test =
|
||||
coverage
|
||||
mock
|
||||
nose
|
||||
pep8
|
||||
pyflakes
|
||||
requests_mock
|
||||
setuptools>=36.4.0
|
46
setup.py
46
setup.py
@@ -1,47 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
from setuptools import setup
|
||||
|
||||
from os.path import dirname, join
|
||||
import octodns
|
||||
|
||||
try:
|
||||
from setuptools import find_packages, setup
|
||||
except ImportError:
|
||||
from distutils.core import find_packages, setup
|
||||
|
||||
cmds = (
|
||||
'compare',
|
||||
'dump',
|
||||
'report',
|
||||
'sync',
|
||||
'validate'
|
||||
)
|
||||
cmds_dir = join(dirname(__file__), 'octodns', 'cmds')
|
||||
console_scripts = {
|
||||
'octodns-{name} = octodns.cmds.{name}:main'.format(name=name)
|
||||
for name in cmds
|
||||
}
|
||||
|
||||
setup(
|
||||
author='Ross McFarland',
|
||||
author_email='rwmcfa1@gmail.com',
|
||||
description=octodns.__doc__,
|
||||
entry_points={
|
||||
'console_scripts': console_scripts,
|
||||
},
|
||||
install_requires=[
|
||||
'PyYaml>=3.12',
|
||||
'dnspython>=1.15.0',
|
||||
'futures>=3.0.5',
|
||||
'incf.countryutils>=1.0',
|
||||
'ipaddress>=1.0.18',
|
||||
'natsort>=5.0.3',
|
||||
'python-dateutil>=2.6.0',
|
||||
'requests>=2.13.0'
|
||||
],
|
||||
license='MIT',
|
||||
long_description=open('README.md').read(),
|
||||
name='octodns',
|
||||
packages=find_packages(),
|
||||
url='https://github.com/github/octodns',
|
||||
version=octodns.__VERSION__,
|
||||
)
|
||||
setup()
|
||||
|
Reference in New Issue
Block a user