@@ -43,6 +43,50 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
43
43
<testSourceDirectory >src/test/python</testSourceDirectory >
44
44
45
45
<plugins >
46
+
47
+ <plugin >
48
+ <!-- copy all the python files to the target directory
49
+ so we produce the dist and build directories there -->
50
+ <groupId >org.apache.maven.plugins</groupId >
51
+ <artifactId >maven-resources-plugin</artifactId >
52
+ <version >3.1.0</version >
53
+ <executions >
54
+ <execution >
55
+ <id >copy-resources-python</id >
56
+ <phase >compile</phase >
57
+ <goals >
58
+ <goal >copy-resources</goal >
59
+ </goals >
60
+ <configuration >
61
+ <outputDirectory >${project.build.directory} /src</outputDirectory >
62
+ <resources >
63
+ <resource >
64
+ <directory >${basedir} /src</directory >
65
+ </resource >
66
+ </resources >
67
+ </configuration >
68
+ </execution >
69
+ <execution >
70
+ <id >copy-resources-setup.py</id >
71
+ <phase >compile</phase >
72
+ <goals >
73
+ <goal >copy-resources</goal >
74
+ </goals >
75
+ <configuration >
76
+ <outputDirectory >${project.build.directory} </outputDirectory >
77
+ <resources >
78
+ <resource >
79
+ <directory >${basedir} </directory >
80
+ <includes >
81
+ <include >setup.py</include >
82
+ <include >MANIFEST.in</include >
83
+ </includes >
84
+ </resource >
85
+ </resources >
86
+ </configuration >
87
+ </execution >
88
+ </executions >
89
+ </plugin >
46
90
<plugin >
47
91
<groupId >org.codehaus.mojo</groupId >
48
92
<artifactId >exec-maven-plugin</artifactId >
@@ -67,7 +111,7 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
67
111
<id >generate python env</id >
68
112
<configuration >
69
113
<executable >python3</executable >
70
- <workingDirectory >${project.build.directory} /../ </workingDirectory >
114
+ <workingDirectory >${project.build.directory} </workingDirectory >
71
115
<arguments >
72
116
<argument >-m</argument >
73
117
<argument >venv</argument >
@@ -86,7 +130,7 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
86
130
</goals >
87
131
<configuration >
88
132
<executable >env/bin/python</executable >
89
- <workingDirectory >${project.build.directory} /../ </workingDirectory >
133
+ <workingDirectory >${project.build.directory} </workingDirectory >
90
134
<arguments >
91
135
<argument >setup.py</argument >
92
136
<argument >sdist</argument >
@@ -98,7 +142,7 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
98
142
<id >python-test</id >
99
143
<configuration >
100
144
<executable >env/bin/python</executable >
101
- <workingDirectory >${project.build.directory} /../ </workingDirectory >
145
+ <workingDirectory >${project.build.directory} </workingDirectory >
102
146
<arguments >
103
147
<argument >setup.py</argument >
104
148
<argument >install</argument >
@@ -112,15 +156,11 @@ Portions Copyright (c) 2017-2018, Chris Fraire <
[email protected] >.
112
156
</goals >
113
157
</execution >
114
158
</executions >
115
-
116
159
</plugin >
117
-
118
160
<plugin >
119
161
<groupId >org.apache.maven.plugins</groupId >
120
162
<artifactId >maven-checkstyle-plugin</artifactId >
121
163
</plugin >
122
-
123
164
</plugins >
124
165
</build >
125
-
126
166
</project >
0 commit comments