Skip to content

Commit

Permalink
Modern packaging setup
Browse files Browse the repository at this point in the history
Use only pyproject.toml

Mark version in stimupy.__version__
  • Loading branch information
JorisVincent committed Feb 20, 2023
1 parent e124d3d commit 23b75ba
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 24 deletions.
5 changes: 4 additions & 1 deletion MANIFEST.in
@@ -1 +1,4 @@
include stimuli/papers/murray2020.mat
include stimupy/papers/murray2020.mat
include stimupy/papers/carney1999_data.csv
include stimupy/papers/carney1999_noise.tif
include stimupy/papers/carney1999_natural_scene.tif
45 changes: 45 additions & 0 deletions pyproject.toml
@@ -0,0 +1,45 @@
[project]
name = "stimupy"
description = "Stimuli for vision science, as image arrays"
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
]
keywords = ["stimulus","visual perception","psychophysics"]

license = {file = "LICENSE"}
authors = [
{name = "Lynn Schmittwilken", email = "l.schmittwilken@tu-berlin.de"},
{name = "Joris Vincent", email = "j.vincent@tu-berlin.de"},
{name = "Matko Matic"},
{name = "Guillermo Aguilar"},
{name = "Marianne Maertens"},
]
maintainers = [
{name = "Lynn Schmittwilken", email = "l.schmittwilken@tu-berlin.de"},
{name = "Joris Vincent", email = "j.vincent@tu-berlin.de"},
]

requires-python = ">=3.6"
dependencies = [
"numpy",
"scipy",
"matplotlib",
"pandas",
]

dynamic = ["version"]

[project.urls]
repository = "https://github.com/computational-psychology/stimupy.git"

[tool.setuptools.packages.find]
where = ["."] # list of folders that contain the packages (["."] by default)
include = ["stimupy*"] # package names should match these glob patterns (["*"] by default)
namespaces = false # to disable scanning PEP 420 namespaces (true by default)

[tool.setuptools.dynamic]
version = {attr = "stimupy.__version__"}
23 changes: 0 additions & 23 deletions setup.py

This file was deleted.

2 changes: 2 additions & 0 deletions stimupy/__init__.py
@@ -1 +1,3 @@
__version__ = "0.99.0"

from . import components, illusions, noises, utils
Empty file removed tests/__init__.py
Empty file.

0 comments on commit 23b75ba

Please sign in to comment.