Skip to content

Commit 5927a65

Browse files
committed
update docs to reflect move away from setup.py
1 parent e630f95 commit 5927a65

File tree

8 files changed

+13
-31
lines changed

8 files changed

+13
-31
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ dist
88
.settings
99
.idea
1010
.*cache/
11+
_version.py
12+
MANIFEST

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include CHANGES.txt
22
include quantities/constants/NIST_codata.txt
3+
exclude conda.recipe

README.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,8 @@ http://docs.scipy.org/doc/numpy/user/install.html
6565

6666
To install quantities itself, then simply run::
6767

68-
$ python setup.py install --user
68+
$ pip install quantities
6969

70-
If you install it system-wide, you may need to prefix the previous command with ``sudo``::
71-
72-
$ sudo python setup.py install
7370

7471
Tests
7572
-----

conda.recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ test:
2222

2323
about:
2424
license: BSD
25-
home: http://pythonhosted.org//quantities/
25+
home: https://github.com/python-quantities/python-quantities/
2626
summary: Physical quantities with units, based upon Numpy

doc/devel/devnotes.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@ Quantities development uses the principles of test-driven development. New
55
features or bug fixes need to be accompanied by unit tests based on Python's
66
unittest package. Unit tests can be run with the following::
77

8-
python setup.py test
9-
10-
This works with the version of unittest provided by the python-2.7 and
11-
python-3.2+ standard library.
8+
pytest

doc/devel/documenting.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Sphinx extension. Sphinx-0.6.3 or later is required. You can obtain
1313
Sphinx and numpydoc from the `Python Package Index`_ or
1414
by doing::
1515

16-
easy_install sphinx
16+
pip install sphinx
1717

1818
.. _Sphinx: http://sphinx.pocoo.org/
1919
.. _numpydoc: http://pypi.python.org/pypi/numpydoc
@@ -37,7 +37,7 @@ Organization of Quantities' documentation
3737
==========================================
3838

3939
The actual ReStructured Text files are kept in :file:`doc`. The main
40-
entry point is :file:`doc/index.rst`, which pulls in the
40+
entry point is :file:`doc/index.rst`, which pulls in the
4141
:file:`index.rst` file for the user guide and the developers guide.
4242
The documentation suite is built as a single document in order to
4343
make the most effective use of cross referencing, we want to make
@@ -314,4 +314,3 @@ Some helpful functions::
314314
C-c C-r rst-shift-region-right
315315

316316
Shift region to the right
317-

doc/devel/release.rst

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Creating Source Releases
88
Quantities is distributed as a source release for Linux and Mac OS. To create a
99
source release, just do::
1010

11-
python setup.py register
12-
python setup.py sdist --formats=zip,gztar
11+
pip install build
12+
python -m build
1313
twine upload dist/quantities-<x.y.z>.*
1414

1515
(replacing `x`, `y` and `z` appropriately).
@@ -23,24 +23,11 @@ like::
2323

2424
You can create a source distribution without uploading by doing::
2525

26-
python setup.py sdist
26+
python -m build --sdist
2727

2828
This creates a source distribution in the `dist/` directory.
2929

3030

31-
Creating Windows Installers
32-
===========================
33-
34-
We distribute binary installers for the windows platform. In order to build the
35-
windows installer, open a DOS window, cd into the quantities source directory
36-
and run::
37-
38-
python setup.py build
39-
python setup.py bdist_msi
40-
41-
This creates the executable windows installer in the `dist/` directory.
42-
43-
4431
Building Quantities documentation
4532
=================================
4633

doc/user/installation.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ Quantities has a few dependencies:
1717
Source Code Installation
1818
========================
1919

20-
To install Quantities, download the Quantites sourcecode from PyPI_
21-
and run "python setup.py install" in the quantities source directory,
22-
or run "pip install quantities".
20+
To install Quantities, run "pip install quantities".
21+
2322

2423
Development
2524
===========

0 commit comments

Comments
 (0)