Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dtscore

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dtscore

DTS Core Services

  • 2.3.1
  • PyPI
  • Socket score

Maintainers
1

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
CommandResult
python -m buildbuilds the application
twine upload --repository testpypi dist/*upload distribution to testpypi, or
twine upload dist/*upload distribution to pypi

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc