Skip to content

Commit edafb96

Browse files
committed
PyPI Packaging
1 parent 5b4b982 commit edafb96

File tree

6 files changed

+78
-25
lines changed

6 files changed

+78
-25
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Changelog
22

3-
## v0.7.3 - 2021/06/10 - 01 - Removed TF Modules
3+
## v0.7.5 - 2021/06/10 - 00 - PyPI Packaging
4+
* Updated link to `CODE_OF_CONDUCT` in `CONTRIBUTING`.
5+
* Added `LICENSE` for BSD licensing.
6+
* Updated `requirements` and `setup`.
7+
* Updated `README`.
8+
9+
## v0.7.3 - 2021/06/09 - 01 - Removed TF Modules
410
* Updated documentation configuration in `docs`.
511
* Removed `qom_tf` package.
612
* Added `CODE_OF_CONDUCT` for GitHub pages configuration.

CONTRIBUTING.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing to The Quantum Optomechanics Toolbox
22

3-
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg?style=for-the-badge)](./code_of_conduct.md)
3+
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-1.2-4baaaa.svg?style=for-the-badge)](./CODE_OF_CONDUCT.md)
44

55
Feel free to contribute to the code by forking this repository in your profile.
66
All pull requests from subsequent branches will be reviewed.
@@ -84,14 +84,17 @@ ROOT_DIR/
8484
│ ├───foo_bar.py
8585
│ └───...
8686
87-
├───.gitignore
8887
├───_config.yml
88+
├───.gitignore
8989
├───CHANGELOG.md
9090
├───CODE_OF_CONDUCT.md
9191
├───CONTRIBUTING.md
92+
├───LICENSE
9293
├───MANIFEST.in
94+
├───pyproject.toml
9395
├───README.md
9496
├───requirements.txt
97+
├───setup.cfg
9598
└───setup.py
9699
```
97100

LICENSE

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
The Clear BSD License
2+
3+
Copyright (c) 2020 Sampreet Kalita
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted (subject to the limitations in the disclaimer
8+
below) provided that the following conditions are met:
9+
10+
* Redistributions of source code must retain the above copyright notice,
11+
this list of conditions and the following disclaimer.
12+
13+
* Redistributions in binary form must reproduce the above copyright
14+
notice, this list of conditions and the following disclaimer in the
15+
documentation and/or other materials provided with the distribution.
16+
17+
* Neither the name of the copyright holder nor the names of its
18+
contributors may be used to endorse or promote products derived from this
19+
software without specific prior written permission.
20+
21+
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY
22+
THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
23+
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
25+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
26+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
27+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
28+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
29+
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
30+
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32+
POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,23 @@ Backed by numerical libraries like NumPy and SciPy, and featuring the highly cus
3131

3232
### Dependencies
3333

34-
The project requires `Python 3.7+` installed, preferably via the [Anaconda distribution](https://www.anaconda.com/products/individual).
34+
The project requires `Python 3.8+` installed, preferably via the [Anaconda distribution](https://www.anaconda.com/products/individual).
3535

36-
### Installing via `pip`
36+
### Installing from PyPI
3737

38-
To install the package, download the repository as `.zip` and extract the contents.
38+
To install the package and its requirements from the Python Package Index, execute:
39+
40+
```bash
41+
pip install -i https://test.pypi.org/simple/ qom
42+
```
43+
44+
### Installing Locally
45+
46+
To install the package locally, download the repository as `.zip` and extract the contents.
3947
Now, execute the following from *outside* the top-level directory, `ROOT_DIR`, inside which `setup.py` is located:
4048

4149
```bash
42-
pip install ROOT_DIR
50+
pip install -e ROOT_DIR
4351
```
4452

4553
Once the package is installed, its modules can be imported.

requirements.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# qom
2-
matplotlib>=3.0
3-
numpy>=1.10
4-
scipy>=1.0
5-
seaborn>=0.10
6-
setuptools>=40.0
2+
matplotlib>=3.3
3+
numpy>=1.19
4+
pyqt5>=5.9
5+
scipy>=1.5
6+
seaborn>=0.11
7+
sympy>=1.6

setup.py

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,35 @@
44
long_desc = file_readme.read()
55

66
setup(
7-
name='qom-toolbox',
8-
version='0.7.3',
7+
name='qom',
8+
version='0.7.5',
99
author='Sampreet Kalita',
1010
author_email='[email protected]',
11-
desctiption='Quantum Optomechanics Toolbox',
11+
desctiption='The Quantum Optomechanics Toolbox',
1212
long_description=long_desc,
1313
long_description_content_type='text/markdown',
14-
url='http://github.com/sampreet/qom',
15-
packages= find_packages(),
14+
keywords=['quantum', 'optomechanics', 'toolbox', 'python3'],
15+
url='https://github.com/sampreet/qom',
16+
download_url='https://github.com/Sampreet/qom/archive/refs/tags/v0.7.5.tar.gz',
17+
packages=find_packages(),
1618
classifiers=[
1719
'Programming Language :: Python :: 3',
1820
'Development Status :: 2 - Pre-Alpha',
1921
'Intended Audience :: Science/Research',
20-
'License :: OSI Approved :: MIT License',
22+
'License :: OSI Approved :: BSD License',
2123
'Operating System :: OS Independent',
2224
'Topic :: Scientific/Engineering'
2325
],
24-
license='MIT',
26+
license='BSD',
2527
install_requires=[
26-
'matplotlib>=3.0',
27-
'numpy>=1.10',
28-
'scipy>=1.0',
29-
'seaborn>=0.10',
30-
'setuptools>=40.0'
28+
'matplotlib>=3.3',
29+
'numpy>=1.19',
30+
'pyqt5>=5.9',
31+
'scipy>=1.5',
32+
'seaborn>=0.11',
33+
'sympy>=1.6'
3134
],
32-
python_requires='>=3.7',
35+
python_requires='>=3.8',
3336
zip_safe=False,
3437
include_package_data=True
3538
)

0 commit comments

Comments
 (0)