Skip to content

Commit f5fcf9f

Browse files
authored
Merge pull request #452 from rpkilby/gardening
Minor package maintenance
2 parents 95fafe5 + 4b07c3c commit f5fcf9f

File tree

4 files changed

+82
-32
lines changed

4 files changed

+82
-32
lines changed

.gitignore

Lines changed: 62 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
11
# Byte-compiled / optimized / DLL files
22
__pycache__/
33
*.py[cod]
4+
*$py.class
45

56
# C extensions
67
*.so
78

89
# Distribution / packaging
910
.Python
10-
env/
11-
bin/
1211
build/
1312
develop-eggs/
1413
dist/
14+
downloads/
1515
eggs/
16+
.eggs/
1617
lib/
1718
lib64/
1819
parts/
1920
sdist/
2021
var/
22+
wheels/
2123
*.egg-info/
2224
.installed.cfg
2325
*.egg
26+
MANIFEST
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
2433

2534
# Installer logs
2635
pip-log.txt
@@ -30,28 +39,66 @@ pip-delete-this-directory.txt
3039
htmlcov/
3140
.tox/
3241
.coverage
42+
.coverage.*
3343
.cache
3444
nosetests.xml
3545
coverage.xml
36-
coverage_html
37-
38-
# Mr Developer
39-
.mr.developer.cfg
40-
.project
41-
.pydevproject
46+
*.cover
47+
.hypothesis/
48+
.pytest_cache/
4249

43-
# Rope
44-
.ropeproject
50+
# Translations
51+
*.mo
52+
*.pot
4553

4654
# Django stuff:
4755
*.log
48-
*.pot
56+
local_settings.py
57+
db.sqlite3
58+
59+
# Flask stuff:
60+
instance/
61+
.webassets-cache
62+
63+
# Scrapy stuff:
64+
.scrapy
4965

5066
# Sphinx documentation
5167
docs/_build/
5268

53-
.DS_Store
54-
db.sqlite3
69+
# PyBuilder
70+
target/
71+
72+
# Jupyter Notebook
73+
.ipynb_checkpoints
74+
75+
# pyenv
76+
.python-version
77+
78+
# celery beat schedule file
79+
celerybeat-schedule
80+
81+
# SageMath parsed files
82+
*.sage.py
83+
84+
# Environments
85+
.env
86+
.venv
87+
env/
88+
venv/
89+
ENV/
90+
env.bak/
91+
venv.bak/
92+
93+
# Spyder project settings
94+
.spyderproject
95+
.spyproject
96+
97+
# Rope project settings
98+
.ropeproject
99+
100+
# mkdocs documentation
101+
/site
55102

56-
# IntelliJ IDE files
57-
.idea
103+
# mypy
104+
.mypy_cache/

flake8

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

.coveragerc renamed to setup.cfg

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
1-
# .coveragerc to control coverage.py
2-
[run]
1+
[bdist_wheel]
2+
universal = 1
3+
4+
5+
[metadata]
6+
license_file = LICENSE
7+
8+
9+
[flake8]
10+
max-line-length = 120
11+
exclude = docs/*,demo/*
12+
ignore = F403
13+
14+
15+
[coverage:run]
316
omit=*site-packages*,*distutils*,*migrations*
417

5-
[report]
18+
[coverage:report]
619
# Regexes for lines to exclude from consideration
720
exclude_lines =
821
# Have to re-enable the standard pragma
@@ -22,5 +35,5 @@ exclude_lines =
2235

2336
ignore_errors = True
2437

25-
[html]
26-
directory = coverage_html
38+
[coverage:html]
39+
directory = coverage_html

setup.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
#!/usr/bin/env python
22

3-
try:
4-
from setuptools import setup, find_packages
5-
except ImportError:
6-
from ez_setup import use_setuptools
7-
use_setuptools()
8-
from setuptools import setup, find_packages
9-
10-
113
import os
4+
from setuptools import setup, find_packages
5+
126

137
here = os.path.dirname(os.path.abspath(__file__))
148
f = open(os.path.join(here, 'README.rst'))

0 commit comments

Comments
 (0)