Skip to main content

DTS Core Services

Project description

Prep

See: https://packaging.python.org/en/latest/tutorials/packaging-projects/

Setup Testpypi and Pypi (one time only)

.pypirc file in $home (c:/users/dgsmith) directory

[testpypi]
username = __token__
password = token from test.pypi.org goes here

Project folder structure

pyexample
├── src
│   ├── pyexample_USERNAME_HERE
│   │   ├── __init__.py
│   │   ├── module_mpi4py_1.py
│   │   ├── module_numpy_1.py
│   │   └── module_numpy_2.py
│   │-- module2_USERNAME_HERE
│   │   ├── __init__.py
│   │   ├── ...
├── tests
│   ├── test1.py
├── .gitignore
├── LICENSE
├── pyproject.toml
├── README.md

Other Steps

  • Create a virtual environment (.venv)
  • pip install any dependencies
  • pip freeze to create requirements.txt

Tools install

python -m pip install --upgrade pip
python -m pip install --upgrade build
python -m pip install --upgrade twine

Create pyproject.toml

under project folder create pyproject.toml

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "dtscore_dsmi"
version = "0.0.2"
authors = [
  { name="D. Smith", email="dgsmith.hpot@gmail.com" },
]
description = "DTS Core Services"
readme = "README.md"
requires-python = ">= 3.10"
dependencies = [
    'requests>=2.31',
    'importlib-metadata; python_version>="3.10"',
    'urllib3>=2.0'
]
classifiers = [
        'Development Status :: 5 - Production/Stable',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: Microsoft :: Windows :: Windows 11',
        'Programming Language :: Python :: 3.10',
]

Build the distribution

  • delete any previous versions from the dist folder
  • check version number in pyproject.toml
Command Result
python -m build builds the application
twine upload --repository testpypi dist/* upload distribution to testpypi, or
twine upload dist/* upload distribution to pypi

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

dtscore-2.3.3.tar.gz (82.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dtscore-2.3.3-py3-none-any.whl (93.4 kB view details)

Uploaded Python 3

File details

Details for the file dtscore-2.3.3.tar.gz.

File metadata

  • Download URL: dtscore-2.3.3.tar.gz
  • Upload date:
  • Size: 82.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for dtscore-2.3.3.tar.gz
Algorithm Hash digest
SHA256 8744a46b044fc4bf332ad51dcad9236d9f7ee6b4df1ffe38dec083c7a6aadf04
MD5 0608f3974e7047e0a1e27984626d3b5a
BLAKE2b-256 3b3a4ea32fc6be0d9eb424b9a51d55133e66cd83add50e8002347ea360b63de4

See more details on using hashes here.

File details

Details for the file dtscore-2.3.3-py3-none-any.whl.

File metadata

  • Download URL: dtscore-2.3.3-py3-none-any.whl
  • Upload date:
  • Size: 93.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for dtscore-2.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4267048ad7c81fb07ef16aad21d7d906f050fc4ca764c2878d6dc9d2ea75d05d
MD5 6ce8592bbc8b4e75fbf36c91d08f961a
BLAKE2b-256 448337b353cf1659f82c03649cee02b34db1c1a39d2a7545875a212397d09090

See more details on using hashes here.

Supported by

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