Skip to content

Commit 9557879

Browse files
4383rbeuque74
authored andcommitted
improve setuptools capabilities
Signed-off-by: Hervé Beraud <[email protected]>
1 parent b9313be commit 9557879

File tree

7 files changed

+72
-61
lines changed

7 files changed

+72
-61
lines changed

.travis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@ language: python
22
python:
33
- "2.6"
44
- "2.7"
5-
- "3.2"
65
- "3.3"
76
- "3.4"
87
- "3.5"
8+
- "3.6"
9+
- "nightly"
10+
jobs:
11+
allow_failures:
12+
- python: "nightly"
913
install:
10-
- pip install .
11-
- pip install -r requirements-dev.txt
14+
- pip install -U setuptools
15+
- pip install -e .
16+
- pip install -e .[dev]
1217
script:
1318
- nosetests
1419
- python setup.py sdist && pip install dist/ovh-*.tar.gz && cd /tmp && python -c 'import ovh; ovh.Client("ovh-eu").get("/auth/time", _need_auth=False)'
1520
after_success:
1621
coveralls
1722
sudo: false
18-

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ note that we do not accept contributions with test coverage under 100%.
509509

510510
.. code:: bash
511511
512-
pip install -r requirements-dev.txt
512+
pip install -e .[dev]
513513
nosetests # 100% coverage is a hard minimum
514514
515515

debian/docs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ README.rst
22
CONTRIBUTING.rst
33
CHANGELOG.md
44
MIGRATION.rst
5-
requirements-dev.txt

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ note that we do not accept contributions with test coverage under 100%.
408408

409409
.. code:: bash
410410
411-
pip install -r requirements-dev.txt
411+
pip install -e .[dev]
412412
nosetests # 100% coverage is a hard minimum
413413
414414

requirements-dev.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

setup.cfg

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,59 @@
1+
[metadata]
2+
name = ovh
3+
description = "Official OVH.com API wrapper"
4+
long_description = file: README.rst
5+
version = 0.4.8
6+
author = Jean-Tiare Le Bigot
7+
author_email = [email protected]
8+
url = http://api.ovh.com
9+
license = BSD
10+
keywords = ovh, sdk, rest
11+
classifiers =
12+
License :: OSI Approved :: BSD License
13+
Development Status :: 4 - Beta
14+
Intended Audience :: Developers
15+
Operating System :: OS Independent
16+
Programming Language :: Python
17+
Programming Language :: Python :: 2.6
18+
Programming Language :: Python :: 2.7
19+
Programming Language :: Python :: 3
20+
Programming Language :: Python :: 3.3
21+
Programming Language :: Python :: 3.4
22+
Programming Language :: Python :: 3.5
23+
Programming Language :: Python :: 3.6
24+
Topic :: Software Development :: Libraries :: Python Modules
25+
Topic :: System :: Archiving :: Packaging
26+
27+
[options]
28+
packages = find:
29+
setup_requires =
30+
setuptools>=30.3.0
31+
include_package_data = True
32+
33+
[options.package_data]
34+
ovh.vendor.requests = *.pem
35+
36+
[options.packages.find]
37+
exclude =
38+
tests
39+
40+
[options.extras_require]
41+
dev =
42+
coverage==3.7.1
43+
mock==1.0.1
44+
nose==1.3.3
45+
yanc==0.2.4
46+
Sphinx==1.2.2
47+
coveralls==0.4.4
48+
ordereddict==1.0;python_version<"2.7"
49+
setuptools>=30.3.0
50+
wheel
51+
test =
52+
coverage==3.7.1
53+
mock==1.0.1
54+
nose==1.3.3
55+
yanc==0.2.4
56+
157
[test]
258
test-suite = nose.collector
359

@@ -8,3 +64,6 @@ with-yanc = 1
864
with-coverage = 1
965
cover-package = ovh
1066
cover-erase = 1
67+
68+
[bdist_wheel]
69+
universal = 1

setup.py

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,11 @@
22
# -*- coding: utf-8 -*-
33

44
try:
5-
from setuptools import setup, find_packages
5+
from setuptools import setup
66
except ImportError:
77
from distribute_setup import use_setuptools
88
use_setuptools()
9-
from setuptools import setup, find_packages
9+
from setuptools import setup
1010

11-
# Read README.rst content
12-
with open('README.rst') as f:
13-
readme = f.read()
1411

15-
setup(
16-
name = "ovh",
17-
version = "0.4.8",
18-
setup_requires=['setuptools'],
19-
author = "Jean-Tiare Le Bigot",
20-
author_email = "[email protected]",
21-
description = "Official OVH.com API wrapper",
22-
long_description = readme,
23-
license = "BSD",
24-
keywords = "ovh sdk rest",
25-
url = "http://api.ovh.com",
26-
packages = find_packages(exclude=['tests']),
27-
package_data={
28-
'ovh.vendor.requests': ['*.pem'],
29-
},
30-
include_package_data=True,
31-
tests_require=[
32-
"coverage==3.7.1",
33-
"mock==1.0.1",
34-
"nose==1.3.3",
35-
"yanc==0.2.4",
36-
],
37-
classifiers=[
38-
"License :: OSI Approved :: BSD License",
39-
"Development Status :: 4 - Beta",
40-
"Intended Audience :: Developers",
41-
"Operating System :: OS Independent",
42-
"Programming Language :: Python",
43-
"Programming Language :: Python :: 2.6",
44-
"Programming Language :: Python :: 2.7",
45-
"Programming Language :: Python :: 3.2",
46-
"Programming Language :: Python :: 3.3",
47-
"Programming Language :: Python :: 3.4",
48-
"Programming Language :: Python :: 3.5",
49-
"Topic :: Software Development :: Libraries :: Python Modules",
50-
"Topic :: System :: Archiving :: Packaging",
51-
],
52-
)
12+
setup()

0 commit comments

Comments
 (0)