File: PRODUCTION.md

package info (click to toggle)
jtdx 2.2.159%2Bimproved-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 75,336 kB
  • sloc: cpp: 38,503; f90: 31,141; python: 27,061; ansic: 11,772; sh: 409; fortran: 353; makefile: 232
file content (64 lines) | stat: -rw-r--r-- 1,571 bytes parent folder | download | duplicates (6)
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
56
57
58
59
60
61
62
63
64
# Production

Of course, until you start these steps, make sure the package have passed all
tests and checkers before continue.

- Create a `.pypirc` file in your home folder with this
    ```bash
        [distutils]
        index-servers =
        pypi
        testpypi

        [pypi]
        repository:https://pypi.python.org/pypi
        username=your username

        [testpypi]
        repository: https://test.pypi.org/legacy/
        username=your username
    ```

    If you want to put also your password in that file, remember to set
    appropriated permission to it.

    *Note that you need to create an account for both sites.*

- Install TWine
    ```bash
        sudo apt install twine
    ```

- Register if necessary
    ```bash
        python setup.py register
    ```

- Create a distribution (code package and wheel)
    ```bash
        python setup.py sdist bdist_wheel
    ```

- Test uploading using Twine
    ```bash
        twine upload -r testpypi dist/*
    ```

- Check if things are OK on [PyPI test page](https://test.pypi.org/project/QDarkStyle).

- Test installing using pip from test PyPI
    ```bash
        pip install --index-url https://test.pypi.org/project/ qdarkstyle
    ```

- **If you make sure all things are OK**, upload officialy
    ```bash
        twine upload -r pypi dist/*
    ```

- Check if things are OK on [PyPI official page](https://pypi.python.org/pypi/QDarkStyle).

- Test installing using pip
    ```bash
        pip install qdarkstyle
    ```