File tree 7 files changed +11
-14
lines changed
7 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 1
1
pulser-core
2
- pulser-simulation
3
- pulser-pasqal
2
+ pulser-simulation
Original file line number Diff line number Diff line change
1
+ 0.20.1
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
from pathlib import PurePath
15
15
16
- # Sets the version to the same as 'pulser'.
17
- version_file_path = PurePath (__file__ ).parent .parent .parent / "VERSION.txt"
16
+ version_file_path = PurePath (__file__ ).parent .parent / "VERSION.txt"
18
17
19
18
with open (version_file_path , "r" , encoding = "utf-8" ) as f :
20
19
__version__ = f .read ().strip ()
Original file line number Diff line number Diff line change
1
+ pulser-core >= 0.20
1
2
pasqal-cloud ~= 0.12
2
3
backoff ~= 2.2
Original file line number Diff line number Diff line change 25
25
current_directory = Path (__file__ ).parent
26
26
27
27
# Reads the version from the VERSION.txt file
28
- with open (
29
- current_directory .parent / "VERSION.txt" , "r" , encoding = "utf-8"
30
- ) as f :
28
+ with open (current_directory / "VERSION.txt" , "r" , encoding = "utf-8" ) as f :
31
29
__version__ = f .read ().strip ()
32
30
33
31
# Changes to the directory where setup.py is
34
32
os .chdir (current_directory )
35
33
36
34
with open ("requirements.txt" , encoding = "utf-8" ) as f :
37
35
requirements = f .read ().splitlines ()
38
- requirements .append (f"pulser-core=={ __version__ } " )
39
36
40
37
# Stashes the source code for the local version file
41
38
local_version_fpath = Path (package_name ) / "_version.py"
Original file line number Diff line number Diff line change 25
25
"`make dev-install` instead."
26
26
)
27
27
28
+ # Pulser packages not pinned to __version__
29
+ requirements = [
30
+ "pulser-pasqal" ,
31
+ ]
32
+ # Adding packages pinned to __version__
28
33
with open ("packages.txt" , "r" , encoding = "utf-8" ) as f :
29
- requirements = [f"{ pkg .strip ()} =={ __version__ } " for pkg in f .readlines ()]
34
+ requirements + = [f"{ pkg .strip ()} =={ __version__ } " for pkg in f .readlines ()]
30
35
31
36
# Just a meta-package that requires all pulser packages
32
37
setup (
Original file line number Diff line number Diff line change 24
24
from pasqal_cloud .device .configuration import EmuFreeConfig , EmuTNConfig
25
25
26
26
import pulser
27
- import pulser_pasqal
28
27
from pulser .backend .config import EmulatorConfig
29
28
from pulser .backend .remote import (
30
29
BatchStatus ,
44
43
root = Path (__file__ ).parent .parent
45
44
46
45
47
- def test_version ():
48
- assert pulser_pasqal .__version__ == pulser .__version__
49
-
50
-
51
46
@dataclasses .dataclass
52
47
class CloudFixture :
53
48
pasqal_cloud : PasqalCloud
You can’t perform that action at this time.
0 commit comments