Skip to main content

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
0. You need a Pypi account with an API token (https://pypi.org/manage/account/)
1. Update version and change message in CHANGES.md
2. Update the 'version' number in version.txt
3. Autoformat code (see above)
4. Optionally, create a pull request in a branch "release <version>"
5. Optionally, Add commit message "release <version>"
6. Optionally, Merge PR in main branch
7. 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


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.1.tar.gz (8.3 kB view details)

Uploaded Source

File details

Details for the file stellaspark-utils-0.1.tar.gz.

File metadata

  • Download URL: stellaspark-utils-0.1.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

Hashes for stellaspark-utils-0.1.tar.gz
Algorithm Hash digest
SHA256 04c7bcad9f8bce7c40cf54fb6d1d6c3da407c98823f74d30db0bca42386d725e
MD5 bd5835d5e14fd455d5cff0946ef93567
BLAKE2b-256 76b2adb8a06a7c45969e895d3cfd9667777475bd50073cec58731b98505f59a7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page