Skip to content

Commit

Permalink
pkg: merge all packaging stuff into pyproject.toml (#256)
Browse files Browse the repository at this point in the history
* pkg: merge all packaging stuff into pyproject.toml

* Add trivial test for packaging

* Add Carlos' email to packaging

---------

Co-authored-by: Kilian Lieret <kilian.lieret@posteo.de>
  • Loading branch information
Borda and klieret committed Apr 18, 2024
1 parent c680b07 commit 58c5717
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 54 deletions.
75 changes: 73 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,77 @@
# Guide (user-friendly):
# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
# Specification (technical, formal):
# https://packaging.python.org/en/latest/specifications/pyproject-toml/


# Choosing a build backend:
[build-system]
requires = ['setuptools>=42']
build-backend = 'setuptools.build_meta'
requires = ["setuptools"] # REQUIRED if [build-system] table is used
build-backend = "setuptools.build_meta" # If not defined, then legacy behavior can happen.


[project]
name = "sweagent"
dynamic = ["version"]
description = "The official SWE-agent package - an open source Agent Computer Interface for running language models as software engineers."
readme = "README.md"
requires-python = ">=3.9"
license = {file = "LICENSE"}
keywords = ["nlp", "agents", "code"]
authors = [
{name = "Carlos E. Jimenez", email = "carlosej@princeton.edu" },
{name = "John Yang", email = "byjohnyang@gmail.com" }
]

# Classifiers help users find your project by categorizing it.
classifiers = [
# How mature is this project? Common values are
# 3 - Alpha, 4 - Beta, 5 - Production/Stable
"Operating System :: OS Independent",
# Indicate who your project is intended for
"Intended Audience :: Developers",
# Pick your license as you wish
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
]

dependencies = [
"anthropic",
"config",
"datasets",
"docker",
"gymnasium",
"numpy",
"openai>=1.0",
"pandas",
"rich",
"ollama",
"ruamel.yaml",
"simple-parsing",
"swebench>=1.0.1",
"tenacity",
"together",
"unidiff",
"rich-argparse"
]

[tool.setuptools]
include-package-data = true

[tool.setuptools.dynamic]
version = {attr = "sweagent.__version__"}

[tool.setuptools.packages.find]
where = ["."]
namespaces = false

[project.urls]
"Homepage" = "https://swe-agent.com"
"Bug Reports" = "http://github.com/princeton-nlp/SWE-agent/issues"
"Documentation" = "https://github.com/princeton-nlp/SWE-agent"
"Source" = "http://github.com/princeton-nlp/SWE-agent"


[tool.pytest.ini_options]
markers = [
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg

This file was deleted.

49 changes: 0 additions & 49 deletions setup.py

This file was deleted.

5 changes: 5 additions & 0 deletions tests/test_packaging.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from sweagent import __version__


def test_version():
assert __version__.count(".") == 2

0 comments on commit 58c5717

Please sign in to comment.