Skip to content

Commit 63924e8

Browse files
committed
Updated docs, requirements, bumped version number
1 parent f591f64 commit 63924e8

File tree

7 files changed

+108
-19
lines changed

7 files changed

+108
-19
lines changed

HISTORY.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,12 @@ History
77
++++++++++++++++++
88

99
* First release on PyPI.
10+
11+
0.2.0 (2015-01-08)
12+
++++++++++++++++++
13+
14+
* Added support for Django 1.7 migrations
15+
* Moved common data to abstract base class
16+
* Added common flag filed (aktywny)
17+
* Added 3 model managers to JednostkaAdministracyjna
18+
* Fixed PEP 8 compliance in main source files

Makefile

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
.PHONY: clean-pyc clean-build docs clean
2+
3+
help:
4+
@echo "clean-build - remove build artifacts"
5+
@echo "clean-pyc - remove Python file artifacts"
6+
@echo "lint - check style with flake8"
7+
@echo "test - run tests quickly with the default Python"
8+
@echo "test-all - run tests on every Python version with tox"
9+
@echo "coverage - check code coverage quickly with the default Python"
10+
@echo "docs - generate Sphinx HTML documentation, including API docs"
11+
@echo "release - package and upload a release"
12+
@echo "sdist - package"
13+
14+
clean: clean-build clean-pyc
15+
rm -fr htmlcov/
16+
17+
clean-build:
18+
rm -fr build/
19+
rm -fr dist/
20+
rm -fr *.egg-info
21+
22+
clean-pyc:
23+
find . -name '*.pyc' -exec rm -f {} +
24+
find . -name '*.pyo' -exec rm -f {} +
25+
find . -name '*~' -exec rm -f {} +
26+
27+
lint:
28+
flake8 --exclude=migrations,south_migrations teryt tests
29+
30+
test:
31+
python setup.py test
32+
33+
test-all:
34+
tox
35+
36+
coverage:
37+
coverage run --source teryt setup.py test
38+
coverage report -m
39+
coverage html
40+
open htmlcov/index.html
41+
42+
#docs:
43+
# rm -f docs/python-waze.rst
44+
# rm -f docs/modules.rst
45+
# sphinx-apidoc -o docs/ waze
46+
# $(MAKE) -C docs clean
47+
# $(MAKE) -C docs html
48+
# open docs/_build/html/index.html
49+
50+
release: clean
51+
python setup.py sdist upload
52+
python setup.py bdist_wheel upload
53+
54+
dist: clean
55+
python setup.py sdist
56+
python setup.py bdist_wheel
57+
ls -l dist

README.rst

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ English: "National Official Register of Territorial Division of the Country")
1818
is a register maintained by Polish Central Statistical Office (Polish: Główny
1919
Urząd Statystyczny; GUS). Among other things it contains:
2020

21-
* identifiers and names of units of territorial division,
22-
* identifiers and names of localities,
23-
* identifiers and names of streets
21+
* identifiers and names of units of territorial division,
22+
* identifiers and names of localities,
23+
* identifiers and names of streets
2424

25-
This app allows to parse XML files from GUS and import them to database. It is
26-
meant to be used as a part of a larger system.
25+
This app parses XML files from GUS and it imports them to the database.
26+
It is meant to be used as a part of a larger system.
2727

2828
Documentation
2929
-------------
@@ -37,20 +37,32 @@ Install django-teryt::
3737

3838
pip install django-teryt
3939

40-
Add ``teryt`` to ``INSTALLED_APPS`` in your ``settings.py`` and run::
40+
If you are using Django 1.6 or lower you have to install South::
4141

42-
./manage.py syncdb
42+
pip install 'south>=1.0'
4343

44-
or::
44+
Add ``teryt`` to ``INSTALLED_APPS`` in your ``settings.py`` and run::
4545

4646
./manage.py migrate teryt
4747

48-
if you use ``south``. Then download TERYT data from
49-
`GUS website <http://www.stat.gov.pl/broker/access/prefile/listPreFiles.jspa>`_, unpack it and then import it::
48+
Then download TERYT data from
49+
`GUS website <http://www.stat.gov.pl/broker/access/prefile/listPreFiles.jspa>`_,
50+
unpack it and then import it::
5051

5152
./manage.py teryt_parse /path/to/WMRODZ.xml /path/to/TERC.xml /path/to/SIMC.xml /path/to/ULIC.xml
5253

5354
Features
5455
--------
5556

56-
* TODO
57+
* It can import all data from all TERYT files
58+
* It deals with updates (just run ./manage.py teryt_parse --update TERC.xml)
59+
* It keeps flag (aktywny) telling you if some record is still present in TERYT
60+
(there are some minor changes in territorial division from time to time)
61+
62+
Support
63+
-------
64+
65+
All bug reports and pull requests are welcome. You can report them at
66+
https://github.com/scibi/django-teryt/issues. It can be in English
67+
or in Polish ;)
68+

requirements-test.txt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
django>=1.5.1
1+
-r requirements.txt
2+
flake8
23
coverage
3-
mock>=1.0.1
4-
nose>=1.3.0
5-
django-nose>=1.2
64

7-
# Additional test requirements go here
5+
6+
#mock>=1.0.1
7+
#nose>=1.3.0
8+
#django-nose>=1.2
9+
#
10+
#httpretty
11+
#sure>=1.2.5
12+
#coveralls
13+

requirements.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
django>=1.5.1
22

3-
# Additional requirements go here
3+
# Only if you are using Django<1.7
4+
#South>=1.0
5+
6+
# Additional requirements go here

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# -*- coding: utf-8 -*-
21
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
33

44
import os
55
import sys
@@ -34,6 +34,7 @@
3434
packages=[
3535
'teryt',
3636
],
37+
package_dir={'teryt': 'teryt'},
3738
include_package_data=True,
3839
install_requires=[
3940
],
@@ -52,4 +53,5 @@
5253
'Programming Language :: Python :: 3',
5354
'Programming Language :: Python :: 3.3',
5455
],
56+
test_suite='tests',
5557
)

teryt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.1.0'
1+
__version__ = '0.2.0'

0 commit comments

Comments
 (0)