A collection of python utilities for StellaSpark Nexus Digital Twin
Project description
Description
A collection of python utilities for StellaSpark Nexus Digital Twin technology.
Usage
TODO
Development
Create an environment:
# Install virtualenv if you didn't do that already
pip install virtualenv
# Navigate to the project root directory
cd <project_root>
# Create your new environment (called 'venv' here)
virtualenv venv
# Enter the virtual environment
.\venv\Scripts\activate
# Install the requirements in the current environment
pip install -r requirements.txt
# Install the development requirements in the current environment
pip install -r requirements_dev.txt
Run tests
TODO
Autoformat your code with:
# Navigate to the project root directory
cd <project_root>
# Enter the virtual environment
.\venv\Scripts\activate
# Make the code look nice
black .
# Sort the import statements
isort .
# Validate the code syntax
flake8
Prepare release
- Create a Pypi account and after registering, make sure your account has a pypi token
- Update version in version.txt
- Update the CHANGES.rst with a change and release date of today
- Optionally, autoformat code (see above)
- Optionally, create a pull request in a branch "release "
- Optionally, Add commit message "release "
- Optionally, Merge the pull request in main branch
- Optionally, Checkout main branch and pull
Release automatically
cd <project_root>
.\venv\Scripts\activate
python release.py
Release manually
# Navigate to the project root directory
cd <project_root>
# Enter the virtual environment
.\venv\Scripts\activate
# Create distribution (with a '.tar.gz' in it)
python setup.py sdist
# Validate all distibutions in stellaspark_utils/dist
twine check dist/*
# Upload distribution to pypi.org
twine upload dist/stellaspark_utils-<version>.tar.gz
# You will be prompted for a username and password.
# - for the username, use __token__ (yes literally '__token__')
# - for the password, use the pypi token value, including the 'pypi-' prefix
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stellaspark-utils-0.2.tar.gz
(8.3 kB
view details)
File details
Details for the file stellaspark-utils-0.2.tar.gz
.
File metadata
- Download URL: stellaspark-utils-0.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c307800780393962eb17a542e2d49a8ecdb21b38d5ff82616c5a9fe326fcd1c5 |
|
MD5 | cf10a6df6e2686ea2c40c0867f7aff5b |
|
BLAKE2b-256 | 12ff1178b2045c1dca74bb8b71f556c149ee0c608a7760a7cf19d5ca61fb451c |