Skip to content

Commit e2ffd65

Browse files
committed
Packaging implementation
1 parent 0ed8864 commit e2ffd65

189 files changed

Lines changed: 9770 additions & 5670 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

MANIFEST.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ include requirements.txt
66
recursive-exclude * __pycache__
77
recursive-exclude * *.py[co]
88

9-
include populus/migrations/RegistrarV3.sol
10-
include populus/migrations/RegistrarV4.sol
119
include populus/assets/*

conftest.py

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
import pytest # noqa: E402
88

9+
from populus import Project # noqa: E402
10+
911

1012
@pytest.fixture()
1113
def temporary_dir(tmpdir):
@@ -17,17 +19,19 @@ def temporary_dir(tmpdir):
1719
def project_dir(tmpdir, monkeypatch):
1820
from populus.utils.filesystem import (
1921
ensure_path_exists,
20-
get_contracts_dir,
21-
get_build_dir,
22-
get_blockchains_dir,
22+
)
23+
from populus.utils.contracts import (
24+
get_contracts_source_dir,
25+
)
26+
from populus.utils.chains import (
27+
get_base_blockchain_storage_dir,
2328
)
2429

2530
_project_dir = str(tmpdir.mkdir("project-dir"))
2631

2732
# setup project directories
28-
ensure_path_exists(get_contracts_dir(_project_dir))
29-
ensure_path_exists(get_build_dir(_project_dir))
30-
ensure_path_exists(get_blockchains_dir(_project_dir))
33+
ensure_path_exists(get_contracts_source_dir(_project_dir))
34+
ensure_path_exists(get_base_blockchain_storage_dir(_project_dir))
3135

3236
monkeypatch.chdir(_project_dir)
3337
monkeypatch.syspath_prepend(_project_dir)
@@ -49,3 +53,13 @@ def _write_project_file(filename, content=''):
4953
with open(full_path, 'w') as f:
5054
f.write(content)
5155
return _write_project_file
56+
57+
58+
@pytest.fixture()
59+
def populus_source_root():
60+
return os.path.dirname(__file__)
61+
62+
63+
@pytest.fixture()
64+
def project(project_dir):
65+
return Project()

docs/contracts.backends.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Contract Backends
2+
=================
3+
4+
This API is not yet documented

docs/contracts.provider.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Contract Provider
2+
=================
3+
4+
This API is not yet documented

docs/contracts.registrar.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Contract Registrar
2+
==================
3+
4+
This API is not yet documented

docs/contracts.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Contract Store
2+
==============
3+
4+
This API is not yet documented
5+
6+
7+
Contents
8+
--------
9+
10+
.. toctree::
11+
:maxdepth: 1
12+
13+
contracts.provider
14+
contracts.registrar
15+
contracts.backends

docs/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Contents
2020
project
2121
config
2222
chain
23+
contracts
24+
packaging
2325
release
2426
modules
2527
API Documentation <populus>

docs/packaging.backends.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Package Backends
2+
================
3+
4+
This API is not yet documented

docs/packaging.installation.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Package Installation
2+
====================
3+
4+
This API is not yet documented

docs/packaging.publishing.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Package Publishing
2+
==================
3+
4+
This API is not yet documented

0 commit comments

Comments
 (0)