-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHOWTO.txt
More file actions
56 lines (35 loc) · 1.13 KB
/
HOWTO.txt
File metadata and controls
56 lines (35 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
prepare:
LICENSE.txt
MANIFEST.in
README.rst
requirements.txt
setup.py
a3cosmos_gas_evolution/__init__.py
a3cosmos_gas_evolution/__main__.py
copy:
a3cosmos_gas_evolution/Common_Python_Code
a3cosmos_gas_evolution/Data_Tables
version:
vi setup.py
build:
python setup.py sdist bdist_wheel
install:
pip install dist/a3cosmos_gas_evolution-1.2.0.tar.gz --user
test (in another Terminal):
cd ~
python
import a3cosmos_gas_evolution
z, rho_mol_gas = a3cosmos_gas_evolution.get_cosmic_mol_gas_density_A3COSMOS()
prepare to upload (only need once):
pip install twine
upload:
python -m twine upload --skip-existing dist/* # astro.dzliu
check reStructuredText:
pip install --user readme_renderer
python -m readme_renderer README.rst
update (remember to change version number):
python -m twine upload --skip-existing dist/*
test:
python setup.py sdist bdist_wheel
python -m twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*
pip install --user --index-url https://test.pypi.org/simple/ a3cosmos-gas-evolution